package com.lcl.jarvis.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import javax.validation.constraints.Size;

/**
 * <p>
 *
 * </p>
 *
 * @author licl
 * @since 2024-05-16
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
@ApiModel(value="TbRoleDTO", description="")
public class TbRoleDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    private Integer id;

    @ApiModelProperty(value = "角色名")
    @Size(max=20,message="不能超过最大长度：20")
    private String roleName;

    @ApiModelProperty(value = "角色描述")
    @Size(max=50,message="不能超过最大长度：50")
    private String roleLabel;

    @ApiModelProperty(value = "是否禁用  0否 1是")
    private Integer isDisable;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getRoleLabel() {
        return roleLabel;
    }

    public void setRoleLabel(String roleLabel) {
        this.roleLabel = roleLabel;
    }

    public Integer getIsDisable() {
        return isDisable;
    }

    public void setIsDisable(Integer isDisable) {
        this.isDisable = isDisable;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }


    @Override
    public String toString() {
        return "TbRole{" +
        "id=" + id +
        ", roleName=" + roleName +
        ", roleLabel=" + roleLabel +
        ", isDisable=" + isDisable +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", id=" + id +
        ", roleName=" + roleName +
        ", roleLabel=" + roleLabel +
        ", isDisable=" + isDisable +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
